package top.lishuoboy.hutool.net;

import cn.hutool.core.net.NetUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

@Slf4j
public class NetUtilTest {

    @Test
    public void test() {
        log.debug("{}", NetUtil.getLocalHostName());
        log.debug("{}", NetUtil.getLocalhostStr());
        log.debug("{}", NetUtil.getLocalhost());
        log.debug("{}", NetUtil.getLocalMacAddress());
        log.debug("{}", NetUtil.getLocalHardwareAddress());
        for (String localIp : NetUtil.localIps()) {
            log.debug("{}", localIp);
        }
        for (String localIpv6 : NetUtil.localIpv6s()) {
            log.debug("{}", localIpv6);
        }

    }
}
